#include "WFloat.hpp"
#include <iostream>
using namespace std;

void TypeConversion(const WFloat &num)
{
    cout << "num              = " << num << endl;

    cout << "num.toString     = " << num.toString() << endl;

    cout << "num.toFloat      = " << num.toFloat() << endl;
    cout << "num.toDouble     = " << num.toDouble() << endl;
    cout << "num.toLongDouble = " << num.toLongDouble() << endl;

    cout << "num.toInt        = " << num.toInt() << endl;
    cout << "num.toLong       = " << num.toLong() << endl;
    cout << "num.toLongLong   = " << num.toLongLong() << endl;
}

int main()
{
    WFloat num{0};

    for (;;)
    {
        cout << "input num = ";
        cin >> num;
        TypeConversion(num);
        cout << endl;
    }
}